home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ccdl151e.zip / LOCALE.H < prev    next >
C/C++ Source or Header  |  1996-01-12  |  1KB  |  59 lines

  1. /*  locale.h
  2.  
  3. */
  4.  
  5. #ifndef __LOCALE_H
  6. #define __LOCALE_H
  7.  
  8.  
  9. #ifndef _SIZE_T
  10. #    define _SIZE_T
  11. typedef unsigned size_t;
  12. #endif
  13.  
  14.  
  15. #define LC_ALL      0
  16. #define LC_COLLATE  1
  17. #define LC_CTYPE    2
  18. #define LC_MONETARY 3
  19. #define LC_NUMERIC  4
  20. #define LC_TIME     5
  21. #define LC_MESSAGES 6
  22. #define LC_userdef  7
  23. #define LC_LAST     LC_userdef
  24.  
  25. struct lconv {
  26.  
  27.    char *decimal_point;
  28.    char *thousands_sep;
  29.    char *grouping;
  30.    char *int_curr_symbol;
  31.    char *currency_symbol;
  32.    char *mon_decimal_point;
  33.    char *mon_thousands_sep;
  34.    char *mon_grouping;
  35.    char *positive_sign;
  36.    char *negative_sign;
  37.    char int_frac_digits;
  38.    char frac_digits;
  39.    char p_cs_precedes;
  40.    char p_sep_by_space;
  41.    char n_cs_precedes;
  42.    char n_sep_by_space;
  43.    char p_sign_posn;
  44.    char n_sign_posn;
  45. };
  46.  
  47. char *   setlocale( int __category, const char *__locale );
  48. char *   _lsetlocale( int __category, const char *__locale );
  49. struct lconv *  localeconv( void );
  50. struct lconv *   _llocaleconv( void );
  51.  
  52. #if defined( __USELOCALES__ )
  53. #define setlocale  _lsetlocale
  54. #define localeconv _llocaleconv
  55. #endif
  56.  
  57.  
  58. #endif  /* __LOCALE_H */
  59.